Update a cost target planning entry.
PUThttps://app.nops.io/c/cost_page/cost_target_planning/:id/
Updates a cost target planning entry with a complete payload, replacing all fields of the specified entry with the data provided. Requires data formatted as per the CostTargetPlanning schema.
Request
Path Parameters
id integerrequired
A unique integer value identifying this cost target planning.
- application/json
Body
required
dimension_1 Dimension 1 (string)nullable
Possible values: <= 1024 characters
dimension_2 Dimension 2 (string)nullable
Possible values: <= 1024 characters
previous_month Previous month (number)nullable
avg_lookback Avg lookback (number)nullable
percent_growth Percent growth (number)nullable
percent_spend Percent spend (number)nullable
target_type Target type (string)
Possible values: [TOTAL
, PLANNING_ITEM
]
target_items Target items (string)nullable
cost_target Cost target (integer)nullable
Responses
- 200
- application/json
- Schema
- Example (from schema)
Schema
id ID (integer)
created date-time
modified date-time
dimension_1 Dimension 1 (string)nullable
Possible values: <= 1024 characters
dimension_2 Dimension 2 (string)nullable
Possible values: <= 1024 characters
previous_month Previous month (number)nullable
avg_lookback Avg lookback (number)nullable
percent_growth Percent growth (number)nullable
percent_spend Percent spend (number)nullable
target_type Target type (string)
Possible values: [TOTAL
, PLANNING_ITEM
]
target_items Target items (string)nullable
client Client (integer)
cost_target Cost target (integer)nullable
{
"id": 0,
"created": "2024-07-29T15:51:28.071Z",
"modified": "2024-07-29T15:51:28.071Z",
"dimension_1": "string",
"dimension_2": "string",
"previous_month": 0,
"avg_lookback": 0,
"percent_growth": 0,
"percent_spend": 0,
"target_type": "TOTAL",
"target_items": "string",
"client": 0,
"cost_target": 0
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT 'https://app.nops.io/c/cost_page/cost_target_planning/:id/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-nops-api-key: <API_KEY_VALUE>' \
-d '{
"dimension_1": "string",
"dimension_2": "string",
"previous_month": 0,
"avg_lookback": 0,
"percent_growth": 0,
"percent_spend": 0,
"target_type": "TOTAL",
"target_items": "string",
"cost_target": 0
}'
ResponseClear